package com.cxdr.awsips.analysis.bean;

import java.util.Date;

/**
 * 文件入库日志
 */
public class WriteDBLog {
	private String ID;
	private String partition_month;
	private Date log_time;
	private Date begin_time;
	private Date end_time;
	private long write_count;
	private String desc;
	private String create_day;
	private String create_hour;
	private String file_name;
	public WriteDBLog(){}
	public WriteDBLog(String fileName){
		file_name = fileName;
		parseAttr();
	}
	private void parseAttr(){
		log_time = new Date();
		partition_month = log_time.getYear()+"-"+log_time.getMonth();
		create_day = String.valueOf(log_time.getDate());
		create_hour = String.valueOf(log_time.getHours());
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getPartition_month() {
		return partition_month;
	}
	public void setPartition_month(String partition_month) {
		this.partition_month = partition_month;
	}
	public Date getLog_time() {
		return log_time;
	}
	public void setLog_time(Date log_time) {
		this.log_time = log_time;
	}
	public Date getBegin_time() {
		return begin_time;
	}
	public void setBegin_time(Date begin_time) {
		this.begin_time = begin_time;
	}
	public Date getEnd_time() {
		return end_time;
	}
	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}
	public long getWrite_count() {
		return write_count;
	}
	public void setWrite_count(long write_count) {
		this.write_count = write_count;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getCreate_day() {
		return create_day;
	}
	public void setCreate_day(String create_day) {
		this.create_day = create_day;
	}
	public String getCreate_hour() {
		return create_hour;
	}
	public void setCreate_hour(String create_hour) {
		this.create_hour = create_hour;
	}
	public String getFile_name() {
		return file_name;
	}
	public void setFile_name(String file_name) {
		this.file_name = file_name;
	}
}
